home *** CD-ROM | disk | FTP | other *** search
- #ifndef XADMASTER_SPRINTF_C
- #define XADMASTER_SPRINTF_C
-
- /* Programmheader
-
- Name: SPrintF.c
- Main: xadmaster
- Versionstring: $VER: SPrintF.c 1.0 (16.10.1999)
- Author: SDI
- Distribution: Freeware
- Description: sprintf function
-
- 1.0 16.10.99 : first version
- */
-
- #include "SDI_compiler.h"
- #include <proto/exec.h>
-
- ASM(static void) putfunc(REG(d0, UBYTE data), REG(a3, STRPTR *a))
- {
- *((*a)++) = data;
- }
-
- static void SPrintF(struct ExecBase *SysBase, STRPTR buf, STRPTR format, ...)
- {
- STRPTR buf2 = buf;
-
- RawDoFmt(format, (APTR) ((ULONG)&format+sizeof(STRPTR)),
- (void(*)()) putfunc, &buf2);
- }
-
- #endif /* XADMASTER_SPRINTF_C */
-